package com.byzk.p2p.admin.borrow.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.byzk.p2p.admin.borrow.dao.TenderRankDao;
import com.byzk.p2p.admin.borrow.dto.TenderRank;
import com.byzk.p2p.admin.borrow.vo.TenderRankVo;

@Service
public class TenderRankService {
	
	@Autowired
	private TenderRankDao tenderRankDao ; 
	
	public TenderRankVo getByBorrowId(TenderRank rank){
		return tenderRankDao.getByBorrowIdAndRank(rank);
	} 
	
	public List<TenderRankVo> listTenderRank(Integer borrowId){
		return tenderRankDao.listTenderRank(borrowId);
	}

}
